<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>模板语法的学习</h1>
    <div>{{n1}}</div>
    <hr/>
    <div>{{n2}}</div>
    <div>{{n2.0}}</div>
    <div>
        {% for item in n2 %}
        <span>{{item}}</span>
        {% endfor %}
    </div>
    <hr/>
    <div>{{n3}}</div>
    <div>{{n3.name}}</div>
    <div>
        {% for item in n3.items %}
        <span>{{item}}</span>
        {% endfor %}
    </div>
    <div>
        {% for k,v in n3.items %}
        <span>{{k}} = {{v}}</span>
        {% endfor %}
    </div>
    <div>
        {% for item in n3.keys %}
        <span>{{item}}</span>
        {% endfor %}
    </div>
    <div>
        {% for item in n3.values %}
        <span>{{item}}</span>
        {% endfor %}
    </div>
    <hr/>
    {{ n4.0 }}
    {{ n4.0.name }}
    {{ n4.0.salary }}
    {{ n4.0.role }}
    {% for item in n4 %}
        <div>{{item.name}} {{item.salary}} {{item.role}}</div>
    {% endfor %}

    {% if n1 == "xingxingru" %}
        <h1>哒哒哒哒哒</h1>
    {% else %}
        <h1>嘟嘟嘟嘟嘟</h1>
    {% endif %}
</body>
</html>